package connect4swt.gui.checkers;

import java.util.ArrayList;

import connect4swt.gui.Piece;



//Before call this class, we have already garantee that 1st click gives us a valid piece and the 2nd click gives an empty position
/**
 * @author  Joel Cordeiro
 */
public class CheckerPieceMove {

	
	/*
	 * The constructor. The parameters are the old piece, the new piece, the board, and the direction where the player is playing
	 */
	public CheckerPieceMove(CheckersPiece oldPiece, CheckersPiece newPiece, ArrayList<Piece> board)
	{
		this.actualPiece = oldPiece;
		this.movePiece = newPiece;		
		this.board = board;		
	}
	
	/*
	 * Verify if it is a valid move
	 */
	public boolean verifyMove()
	{
		boolean eat = false;		
							
		return eat;
	}
	
	/*
	 * Verify if we can eat an opponent's piece
	 */
	public boolean verifyEat(CheckersPiece actualPiece, CheckersPiece movePiece)
	{					
		return false;
	}	
	
	private CheckersPiece movePiece = null;
	private CheckersPiece actualPiece = null;	
	private ArrayList<Piece> board;	
}

